export default {
  mounted(el, binding) {
    const {value, arg} = binding;
    console.log(arg);
    if (!arg.includes(value)) el.parentNode && el.parentNode.removeChild(el);
  }
}

// const buildClass = (el, binding) => {
//   const {value, arg} = binding;
//   el.className = !arg.includes(value) ? "hide" : "block"
// }

// export default {
//   mounted(el, binding) {
//     buildClass(el, binding)
//   },
//   updated(el, binding) {
//     buildClass(el, binding)
//   }
// }